import Mock from 'mockjs'

const Random = Mock.Random;

function getData() {
  let datalist = [];
  for (let i = 0; i < 10; i++) {
    let newData = {
      title: Random.csentence(5, 5),
      simg: Random.dataImage('300*250', 'mock的图片'),
      author_name: Random.cname(),
      date: Random.date() + ' ' + Random.time()
    }
    datalist.push(newData)
  }
  return {
    data: datalist
  }
}

function getUser() {
  let UserList = [];
  for (let i = 0; i < 20; i++) {
    let newData = {
      title
    }
  }
}
const data = Mock.mock('/msg1', getData)
export default {
  data
}
